import request from '@/utils/request'

//新增患者
export function createPatient(data) {
    return request({
        url: 'patient/createPatient',
        method: 'post',
        data: data
    })
}
//修改患者
export function updatePatient(data) {
    return request({
        url: 'patient/updatePatient',
        method: 'put',
        data: data
    })
}
//删除患者
export function deletePatient(id) {
    return request({
        url: 'patient/deletePatient/'+id,
        method: 'delete'
    })
}
//查询所有患者
export function getAllPatients() {
    return request({
        url: 'patient/selectPatient',
        method: 'get'
    })
}
